#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include "utilities.h"

using namespace std;


int main(int argc, char **argv) {
	if (argc != 2) {
		cout << "Usage: " << argv[0] << " in_string." << endl;
		return 0;
	}

	char in_string[256];
	sprintf(in_string, "%s", argv[1]);

	cout << "Before reverse: " << endl;
	cout << in_string << endl << endl;

	reverseString(in_string);

	cout << "After reverse: " << endl;
	cout << in_string << endl << endl;

	removeDuplicateN2(in_string);
	cout << "After remove duplicate: " << endl;
	cout << in_string << endl << endl;

	return 0;
}

